package com.gxa.realm;


import org.apache.shiro.crypto.hash.SimpleHash;
import org.apache.shiro.util.ByteSource;

/**
 * @Description:
 * @Author: zhuiyi
 * @CreatTime: 2022/9/26 15:28
 **/
public class Test {
    public static void main(String[] args) {
        String algorithmName = "MD5";
        Object source = "admin";
        ByteSource salt = ByteSource.Util.bytes("123");

        SimpleHash simpleHash = new SimpleHash(algorithmName,source,salt,1024);
        System.out.println(simpleHash);
    }
}
